import request from "@/utils/request";
import vi from "element-ui/src/locale/lang/vi";

const api_name='/eduService/edu-video'

export default {
  //增加课时
  addVideo(video) {
    return request({
      url: `${api_name}/addVideo`,
      method: 'post',
      data: video
    })
  },
  //获取课时信息
  getVideo(videoId) {
    return request({
      url: `${api_name}/getVideoInfo/${videoId}`,
      method: 'get'
    })
  },
  //修改课时信息
  updateVideo(video) {
    return request({
      url: `${api_name}/updateVideo`,
      method: 'post',
      data: video
    })
  },
  deleteVideo(videoId){
    return request({
      url: `${api_name}/${videoId}`,
      method: 'delete'
    })
  },
  //删除视频
  deleteAliyunvod(id) {
    return request({
      url: '/eduvod/video/removeAilyunVideo/'+id,
      method: 'delete'
    })
  }
}
